                    //logs.js
                    //获取应用实例
                    const app = getApp()
                    const util = require('../../utils/util.js')
                    const Dialog = require('../../zanui/dialog_input/dialog');
                    import { user_get_follow, user_follow, postcard_request } from "../../utils/request/request_json"
                    Page({
                        data: {
                            list: [],
                            is_vip: "",
                            applyVipState:true,
                        },
                        onShow: function() {
                            app.globalData.pageIdx = 1;
                            var self = this;
                            if (!app.globalData.opid){
                              app.login(function () {
                                self.user_get_follow();
                              })
                            }else{
                              this.user_get_follow();
                            }
                            var is_vip = wx.getStorageSync("card_list").is_vip;
                            this.setData({
                                is_vip: is_vip
                            })
                        },

                        user_get_follow() {
                            var self = this;
                            var data = {
                                openid: app.globalData.opid
                            }
                            user_get_follow(data, function(res) {
                                if (res.data.state == true) {
                                    self.setData({
                                        list: res.data.data
                                    })
                                }
                            }, function(res) {});
                        },
                        handleDelItem(itemData) {
                            var self = this;
                            var data = {
                                openid: app.globalData.opid,
                                pull_openid: itemData.detail.pull_openid,
                                flag: 2
                            }
                            user_follow(data, function(res) {
                                self.user_get_follow()
                            }, function(res) {
                            })
                        },
                        submitInfo: function(e) {

                        },
                        pushCheck(e) {
                            var self = this;
                            self.setData({
                                applyVipState: false,
                            })
                            Dialog({
                                title: '申请你的个人名片',
                                content: '',
                                slot: true,
                                selector: '#zan-dialog-edit',
                                showCancelButton: true,
                            }).then((res) => {
                                if (res.type == "cancel") {
                                    self.setData({
                                        applyVipState: true
                                    })
                                    return;
                                }
                                var data = {
                                    "openid":app.globalData.opid,
                                    "notes":self.data.changeVal,
                                    "form_id": e.detail.formId.toString()
                                }
                                postcard_request(data,function(str){
                                    console.log(str);
                                    if(str.data.state){
                                        wx.showToast({
                                            title: "提交成功！",
                                            mask: true,
                                            icon: "success"
                                        })
                                        self.setData({
                                            applyVipState: true,
                                            changeVal:""
                                        })
                                    }
                                })


                            }).catch((res) => {
                                self.setData({
                                    applyVipState: true
                                })
                                return;
                            })
                        },
                        //指向聊天跳转页面
                        getToTalk(e) {
                            var targetTo = e.currentTarget.dataset.to
                            wx.navigateTo({
                                url: '/pages/chat/index?pull_openid=' + targetTo.pull_openid
                            })
                        },
                        formSubmit() {
                        },
                        bindchangeVal(e){
                            this.setData({
                                changeVal:e.detail.value
                            })
                        },
                        showDetailInfo(e){
                            wx.setStorageSync('scene', e.detail.pull_openid)
                            wx.switchTab({
                                url: '/pages/index/index',
                            })
                        }
                    })